<?php 
	$this->load->view('header');
	$this->load->view('header_end');
	$this->load->view('part_view/mod_banner_header'); 
?>
<div id="block_menu_banner">
	<?php 
		$this->load->view('part_view/mod_menu_top'); 
	?>
</div>
<div id="content_block">
	<div id="left_column">
		<?php 
			$this->load->view('part_view/mod_check_search'); 
		?>
	</div>
	<div id="main_column">
		<div id="login_form" style="display:none">
			<h3 class="title_page">Đăng nhập</h3>
			<div id="ContentMessage" style="margin-bottom:20px;">
				<div id="NoteContentMessage">
				</div>
				
				<div id="ErrorContentMessage" style="color:#FF0000;padding:5px;">
					<p><?php echo $error_message; ?></p>
				</div>
			</div>		
			<form  name='form_main' id="form_main" method="post" action="<?php echo base_url().'index.php/payment/login#banner_hot_product' ?>" enctype="multipart/form-data">	
				<table class="EditStyle01" >
					<tbody>		
						<tr>
							<td class="key" width="300" align="right">
								<?php echo 'Tên tài khoản: '; ?>				
							</td>
							<td width="400">
								<input style="width:200px;" type="text" width="" name="txt_user_name" value="<?php echo $txt_user_name; ?>">					
							</td>
						</tr>							
						<tr>
							<td class="key" align="right">
								<?php echo 'Mật khẩu: '; ?>
							</td>
							<td width="400">
								<input style="width:200px;" type="password" width="" name="txt_password" value="<?php //echo $txt_password; ?>">					
							</td>
						</tr>
						<tr>
							<td class="key" align="right">&nbsp;</td>
							<td width="400">
								<input type="submit" name="btn_login" style="width:80px;" value ="<?php echo 'Đăng nhập'; ?>" />	
							</td>
						</tr>                
					<tbody>				
				</table>
				<input name="hidden_event" type="hidden" value = "<?php //echo $event; ?>"  />
				<input type="hidden" name="hidden_button_click"  value = "" />	
				<input type="hidden" name="hidden_event_index"  value = "" />
			</form>
			<p style="text-align:center">Nếu chưa có tài khoản, bạn có thể đăng kí <a href="<?php echo base_url().'index.php/registry/f_add' ?>" style="color:#0000FF">tại đây</a></p>
			<hr/>
		</div>
		
		<!--<p>
			<input type="radio" name="rad_check_contact" value="1" onclick="check_rad_contact();" />
			Hoặc có thể click vào dấu check để gửi thông tin
		</p>-->
		<div id="contact_form"  style="display:block<?php //echo $display_contact ?>">
			<h3 class="title_page">Form liên hệ đặt hàng</h3>
			<div id="ContentMessage" style="margin-bottom:20px;">
				<div id="NoteContentMessage">
				</div>
					(<?php echo Fget_icon_notnull() ?>) là những phần bắt buộc
				<div id="ErrorContentMessage" style="color:#FF0000;padding:5px;">
					<p><?php //echo $error_message; ?></p>
				</div>
			</div>		
			<form  name='form_contact' id="form_contact" method="post" action="<?php echo base_url().'payment/contact' ?>">	
				<table class="EditStyle01 frm_contact" >
					<tbody>		
						<tr>
							<td class="key" width="300" align="right">
								<?php echo 'Họ tên: '; ?>				
							</td>
							<td width="400">
								<input style="width:200px;" type="text" name="txt_cfullname" value="<?php echo $txt_cfullname; ?>" class="required">			
							</td>
						</tr>							
						<tr>
							<td class="key" align="right">
								<?php echo 'Địa chỉ: '; ?>
							</td>
							<td width="400">
								<input style="width:200px;" type="text" name="txt_caddress" value="<?php echo $txt_caddress; ?>" class="required">				
							</td>
						</tr>
						<tr>
							<td class="key" align="right">
								<?php echo 'Số điện thoại: '; ?>
							</td>
							<td width="400">
								<input style="width:200px;" type="text" name="txt_nphone" value="<?php echo $txt_nphone; ?>" class="required number">				
							</td>
						</tr>
						<tr>
							<td class="key" align="right">
								<?php echo 'Email: '; ?>
							</td>
							<td width="400">
								<input style="width:200px;" type="text" width="" name="txt_cemail" value="<?php echo $txt_cemail; ?>" class="required email">				
							</td>
						</tr>
						<tr>
							<td class="key" align="right">
								<?php echo 'Ghi chú: '; ?>
							</td>
							<td width="400">
								<textarea name="txt_cnote" style="width:200px;height:150px"><?php echo $txt_cnote ?></textarea>				
							</td>
						</tr>
						<tr>
							<td class="key" align="right">&nbsp;</td>
							<td width="400">
								<input type="submit" name="btn_login" style="width:80px;" value ="<?php echo 'Đặt hàng'; ?>" />	
							</td>
						</tr>                
					<tbody>				
				</table>
				<input name="hidden_event" type="hidden" value = "<?php //echo $event; ?>"  />
				<input type="hidden" name="hidden_button_click"  value = "" />	
				<input type="hidden" name="hidden_event_index"  value = "" />
			</form>
		</div>
	</div>
</div>
<script type="text/javascript" >
	
	$(document).ready(function(){
	$("#form_contact").validate();
});
	
	function check_rad_contact()
		{
			elem = document.getElementById('login_form');
			elem.style.display = 'none';
			
			elem_contact = document.getElementById('contact_form');
			elem_contact.style.display = 'block';

		}
	
	document.form_main.txt_user_name.focus();
	
	function js_VerifyBeforeSubmit (obj_form, btn_name) 
		{
			if (document.form_main.txt_user_name.value=='')
				{
					document.form_main.txt_user_name.focus();
					return false;
				}
			if (document.form_main.txt_password.value=='')
				{
					document.form_main.txt_password.focus();
					return false;
				}
			return false;		
		}		
	
	/*-------------------------------------------------------------------------------------
	* Tokaban Corp 2009
	* Package : TKB PHP SYSTEM CODE
	*--------------------------------------------------------------------------------------
	* huanlv77 - 2009/06/28.
	*--------------------------------------------------------------------------------------
	* Ham submit form co su dung su kien hidden de truyen bien flag dieu khien.
	* Nhiem vu gan gia tri cho bien hidden dieu khien nut nhan submit cua form.
	* Dung de controller nhan biet nut submit nao duoc nhan tren giao dien de xu ly tren server script.
	* Ham nay duoc dung chung cho toan bo ung dung.
	* Nen xay dung thanh chuan de tai su dung cho nhung du an khac.
	*--------------------------------------------------------------------------------------*/
	function js_SetSubmitButtonClick(obj_form, btn_name) 
		{
			obj_form.hidden_event_index.value=btn_name;
			obj_form.submit();		
		}		
	</script>
<?php 
	$this->load->view('part_view/mod_home_slide_bottom'); 
	$this->load->view('part_view/mod_footer_content');  
	$this->load->view('footer');
?>


